package HP.Demo;

import java.util.Scanner;

public class Chou_Jiang {
    public static void main(String[] args) {

        System.out.println("我行我素购物管理系统从> 幸运抽奖");
        System.out.println();
        System.out.println();
        System.out.println("请输入4位会员号:");
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        int bainum = ((num/100))%10;
        //System.out.println(bainum);
        int index = (int)((Math.random())*10);
        //double a = Math.random()*10;
        //System.out.println(index);
        //System.out.println("a = " + a);
        if (index==bainum){
            System.out.println(num+"号客户是幸运客户,获得精美MP3一个!");
        }else {
            System.out.println(num+"号客户,感谢您的支持!");
        }
    }

    }

